package com.ailk.hquery.ws;

public class ISvrProxy implements com.ailk.hquery.ws.ISvr {
  private String _endpoint = null;
  private com.ailk.hquery.ws.ISvr iSvr = null;
  
  public ISvrProxy() {
    _initISvrProxy();
  }
  
  public ISvrProxy(String endpoint) {
    _endpoint = endpoint;
    _initISvrProxy();
  }
  
  private void _initISvrProxy() {
    try {
      iSvr = (new com.ailk.hquery.ws.ISvrServiceLocator()).getISvrPort();
      if (iSvr != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)iSvr)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)iSvr)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (iSvr != null)
      ((javax.xml.rpc.Stub)iSvr)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public com.ailk.hquery.ws.ISvr getISvr() {
    if (iSvr == null)
      _initISvrProxy();
    return iSvr;
  }
  
  public com.ailk.hquery.ws.HighCostResult highCostHquery(java.lang.String param) throws java.rmi.RemoteException{
    if (iSvr == null)
      _initISvrProxy();
    return iSvr.highCostHquery(param);
  }
  
  
}